# 生成器创建 斐波那契数列

def feibonaqi(nums):
    a, b = 0, 1
    current = 0
    while current < nums:
        ret = a
        # print(ret)
        yield ret
        a, b = b, a+b
        current +=1
    
    
obj = feibonaqi(10)
for temp in obj:
    print(temp)
